package cn.edu.zafu.bigdata.lyq.work5;

public class TestStudentGradeManger {
    public static void main(String[] args) {
        StudentGradeManger studentGradeManger = new StudentGradeManger();
        //新建学生和成绩
        studentGradeManger.addStudent("a",74);
        studentGradeManger.addStudent("b",49);
        studentGradeManger.addStudent("c",86);
        studentGradeManger.addStudent("d",90);
        //查询成绩
        System.out.println("a的成绩是：" + studentGradeManger.getGrade("a"));
        System.out.println("b的成绩是：" + studentGradeManger.getGrade("b"));
        System.out.println("c的成绩是：" + studentGradeManger.getGrade("c"));
        System.out.println("d的成绩是：" + studentGradeManger.getGrade("d"));
        System.out.println("e的成绩是：" + studentGradeManger.getGrade("e"));
        //删除成绩
        studentGradeManger.removeStudent("b");
        System.out.println("b的成绩是：" + studentGradeManger.getGrade("b"));
    }
}
